package com.zjitc.pigspring.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.yulichang.base.MPJBaseServiceImpl;
import com.zjitc.pigspring.bean.po.Goods;
import com.zjitc.pigspring.mapper.GoodsMapper;
import com.zjitc.pigspring.service.GoodsService;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {

    @Autowired
    private GoodsMapper goodsMapper;
    @Override
    public List<Goods> getGoodsList() {
        return goodsMapper.getGoodsList();
    }

    @Override
    public List<Goods> goodsQuery(Goods goods) {
        return goodsMapper.goodsQuery(goods);
    }

    @Override
    public List<Goods> GoodsListBySeller(Integer id) {
        return goodsMapper.GoodsListBySeller(id);
    }

    @Override
    public List<Goods> getTops() {
        return goodsMapper.getTops();
    }

    @Override
    public List<Goods> goodsQueryBySeller(Goods goods) {
        return goodsMapper.goodsQueryBySeller(goods);
    }
}
